package 力扣日常刷题.木23一月.第02天302;

import java.util.Locale;
import java.util.Scanner;

/**
 * @author 帅小伙
 * @date 2022/3/2
 * @description
 */
public class Demo14小美的用户名 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();

        con:for (int i = 0; i < n; i++) {
            String s = scanner.next();
            int digit = 0;
            s = s.toLowerCase();
            if(s.length() < 2  || (s.charAt(0) <'a' || s.charAt(0) >'z')) {
                System.out.println("Wrong");
                continue;
            }
            for (char c : s.toCharArray()) {
                if((c>='0' && c <= '9') || (c >='a' && c <= 'z')){
                    if(c>'0' && c < '9'){
                        digit++;
                    }
                }else {
                    System.out.println("Wrong");
                    break con;
                }
            }
            if(digit!= 0){
                System.out.println("Accept");
            }else{
                System.out.println("Wrong");
            }
        }
    }


}
